import { stringify } from 'qs';
import request from '@/utils/request';

export async function GetTagListWithPage(params) {
  return request(`/${window.storeId}/Member/GetTagListWithPage?${stringify(params)}`);
}
export async function FindTag(params) {
  return request(`/${window.storeId}/Member/FindTag?${stringify(params)}`);
}
export async function BatchDelTag(params) {
  return request(`/${window.storeId}/Member/BatchDelTag`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function DelTag(params) {
  return request(`/${window.storeId}/Member/DelTag`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function AddTag(params) {
  return request(`/${window.storeId}/Member/AddTag`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function UpdateTag(params) {
  return request(`/${window.storeId}/Member/UpdateTag`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function ExportTag(params) {
  return request(`/${window.storeId}/Member/ExportTag`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}